package com.als.healthymananger.service;

import com.als.healthymananger.dto.AppointmentDto;
import com.als.healthymananger.entity.Appointment;
import com.als.healthymananger.mapper.AppointmentsMapper;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author aion
 * @since 2021-07-21
 */
public interface AppointmentsService extends IService<Appointment> {

    /**
     * 创建预约信息
     * 在创建预约信息的同时生成基本档案信息
     * @param appointment
     * @return
     */
    public boolean createAppointment(AppointmentDto appointment);

    /**
     * 获取预约信息
     * @param appointmentId
     * @return
     */
    AppointmentDto getAppointmentDto(int appointmentId);

    /**
     * 通过username获取预约id
     * @param username
     * @return
     */
    List<String> getAppointmentDtoByUserName(String username);
}
